package compiler.parser;

import compiler.CompileException;

public class SyntacticException extends CompileException {
	private static final long serialVersionUID = 2L;

	public SyntacticException (int line, int position, String expected, String got) {
		super(line, position, "token doesn't match! expected "+expected+", but got '"+got+"'");
	}
	
	public String getMessage() {
		return "["+line+":"+position+"]"+"Syntax Error: "+cause;
	}
}
